package com.hdu.dwh.pojos.cube_pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@TableName("cuboid_dimension")
public class CuboidDimension {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer cuboidId;
    private String field;

    public CuboidDimension(Integer cuboidId, String field) {
        this.cuboidId = cuboidId;
        this.field = field;
    }

    public CuboidDimension(String field) {
        this.field = field;
    }
}
